{template "content","header"}
 <div id="info">
  <span class="topLink"><p class="crumbs" style="text-align:left;line-height:2em;"><a href="{siteurl($siteid)}">首页</a><span> &gt; </span>{catpos($catid)} 正文</p></span>
</div>
<?php
function leftmenu($rootid){
    ?>
    {pc:content action="category" catid="$rootid" siteid="$siteid" order="listorder ASC"}
      {loop $data $r}
      <?php
      if(count($data) == 0){
      return;
      }
      $c = $r['arrchildid'];
      $c = explode(',',$c);
      if(count($c) != 1){
      ?>
      <li onmouseover="displaySubMenu(this)" onmouseout="hideSubMenu(this)">
      <a href="{$r[url]}">{$r[catname]}</a>
      <ul  class="left_submenu">
      <?php menu($r['catid']);?>
      </ul>
      </li>
      <?php
      }else if(count($c) == 1){
      ?>
      <li><a href="{$r[url]}">{$r[catname]}</a></li>
      <?php
      }
      ?>
      {/loop}
      {/pc}
      <?php 
      }
?>
 {pc:get sql="select * from phpcms_category where catid in($catid)" return="data"}
        <?php $parentid = intval($data[0]['parentid']);?>
          <li style="border-radius: 4px 4px 0 0;width: 190px;list-style:none;
border-bottom: 1px solid white;
background-color: #356CB6;
height: 40px;
line-height: 40px;
text-indent: 2em;font-size:20px;color:#fff;
color: white;
font-weight: bold;
font-size: 20px;">
{$CATEGORYS[$parentid]['catname']}</li>
  {/pc}

<div class="left_menu">
 <ul>
 
  <?php leftmenu($parentid);?>
</ul>  
</div> 
     
<div id="con_r1">
    <div id="news">

      <div id="Article" style="background-color:#EAEAEA;min-height:600px;padding:20px;">
          <h1 style="font:25px bold 宋体;color: #0e4070;margin-left:10px;text-align: center;">{$title}</h1>
<p class="time">{$inputtime}&nbsp;&nbsp;&nbsp;&nbsp;<?php if(!empty($copyfrom)){?>来源：{$copyfrom}<?php }?>&nbsp;&nbsp;&nbsp;&nbsp;点击：<span id="hits"></span></p><hr/>
      <div style="width:100%;">
        {$content}
      </div>
      <div id="pages" class="text-c">{$pages}</div>
            <p class="f14">
                <strong>上一篇：</strong><a href="{$previous_page[url]}">{$previous_page[title]}</a><br />
                <strong>下一篇：</strong><a href="{$next_page[url]}">{$next_page[title]}</a>
            </p>
      </div>

    </div>
  </div>
  <script language="JavaScript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>
{template "content","footer"}